<template>
  <el-container>
    <el-aside width="200px">
      <el-menu
        unique-opened
        text-color="#fff"
        active-text-color="#ffd04b"
        :default-active="$route.path"
        :router="true"
        background-color="#585E64"
      >
        <el-submenu index="1">
          <template slot="title">工单列表</template>
          <el-menu-item index="/main/workOrder/workOrderList/1">我的待办</el-menu-item>
          <el-menu-item index="/main/workOrder/workOrderList/2">已参与的</el-menu-item>
          <el-menu-item index="/main/workOrder/workOrderList/3">已结束</el-menu-item>
          <el-menu-item index="/main/workOrder/workOrderList/4">草稿箱</el-menu-item>
          <el-menu-item index="/main/workOrder/workOrderList/5">所有工单</el-menu-item>
        </el-submenu>
      </el-menu>
    </el-aside>
    <el-main>
      <router-view></router-view>
    </el-main>
  </el-container>
</template>

<script>
export default {
  name: 'WorkOrder'
}
</script>

<style lang="scss" scoped>
$pageHeight: calc(100vh - 60px);

.el-container {
  .el-aside {
    height: $pageHeight;
    background-color: #585e64;
    overflow-y: hidden;
    .el-menu {
      border: 0;
      .el-menu-item {
        background-color: #585e64;
        &:hover {
          background-color: #3f454b;
        }
      }
    }
  }
  .el-main {
    padding: 16px;
    height: $pageHeight;
  }
}
</style>
